<script lang="ts">
export default {
  data() {
    return {}
  },
  methods: {
    tovideo() {
      this.$router.push({
        path: '/video'
      })
    }
  }
}
</script>

<template>
  <div class="big-img">
    <img src="../components/images/b2.jpg" alt="" @click="tovideo" />
  </div>
  <!-- 频道 -->
  <div class="container">
    <div class="alltitle">电影 · 频道 <a href="#" @click="tovideo">更多</a></div>
    <div class="channel">
      <ul>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c1.jpg" alt="" /></div>
              <div class="card-title">动画</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c2.jpg" alt="" /></div>
              <div class="card-title">喜剧</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c3.jpg" alt="" /></div>
              <div class="card-title">动作</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c4.jpg" alt="" /></div>
              <div class="card-title">惊悚</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c5.jpg" alt="" /></div>
              <div class="card-title">悬疑</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c6.jpg" alt="" /></div>
              <div class="card-title">战争</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c7.jpg" alt="" /></div>
              <div class="card-title">冒险</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c8.jpg" alt="" /></div>
              <div class="card-title">奇幻</div>
            </div>
          </a>
        </li>
        <li>
          <a href="#" @click="tovideo">
            <div class="card">
              <div class="card-img"><img src="../components/images/c9.jpg" alt="" /></div>
              <div class="card-title">武侠</div>
            </div>
          </a>
        </li>
      </ul>
    </div>
    <div class="foot"></div>
  </div>
</template>
<style>
.channel {
  width: 100%;
}

.channel ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-flow: row wrap;
  width: 100%;
}

.channel ul li {
  width: 33%;
  margin: 10px 0;
}
.card {
  position: relative;
}
.card-img {
  width: 100%;
}

.card-img img {
  width: 100%;
}

.card-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #00000052;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
}

.card-title:hover {
  background-color: #ffffff00;
}
</style>
